🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
1 messages
1 total messages Started by Guillermo D�az Mon, 27 Nov 2006 17:22
TDataSetAdapterImageField against Interbase
#339
Author: Guillermo D�az
Date: Mon, 27 Nov 2006 17:22
48 lines
1887 bytes
Hi!



I'm developed a web app with WebSnap (BDS2006/C++). I have stored data into
VARCHAR field and a image (jpg) into a blob field (Interbase 7.5).

I have TDataSetAdapter and TadapterPageProducer into a WebSnap Page Module.
TdataSetAdapterField for strings and TdataSetAdapterImageField for image.

In WebSnap Data Module is TIBDatabase, TIBTransaction and TIBQuery.



And I get a Web Page with strings data Ok. But  [x (BLOB)] instead of my
image.



The code of my html file is:



<% if (vADtStAfiliado_MYPHOTO.Visible)

   { %>

        <tr>

        <td>My Photo</td>

        <td ><img
src="<%=(vADtStAfiliado_MYPHOTO.Image!=null)?vADtStAfiliado_MYPHOTO.Image.AsHREF:''%>"
alt="<%=vADtStAfiliado_MYPHOTO.DisplayText%>"></td>

        </tr>

<% } %>



Can anybody tell me why it happen?

Thanks in advance for any help.



Guillermo.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads