Jump to content

TUniImage under Web Server doesn't work


ttamturk

Recommended Posts

  • 4 weeks later...

I have same problem with ISAPI under IIS Delphi XE2. In my case it`s png image.

no file in the cach folder

source is <img src="data:image/gif,base64,R0IGODlhQA....%3D" width="93" height="89" hspace="0" vspace="0">

but i can see in cach folder other icons like plus and so on

Link to comment
Share on other sites

for the stand alone server code is Ext.Component({id:"O25_id",html:"\x3Cimg src='m/cache/bakerymobile/__2957D50B65600F0B8EBD4C92.png' width='93' height='89' hspace='0' vspace='0'\x3E"

for the ISAPI code is Ext.Component({id:"O25_id",html:"\x3Cimg src='data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D' width='93' height='89' hspace='0' vspace='0'\x3E"

 

and I do not see picture in the cache folder. 

May be compiler forgot to include image file or problem with path in ISAPI mode.

 

I use function

 function GetModuleFileSpec: String;
 var
   cret: integer;
   ModName: array[0..MAX_PATH - 1] of Char;
 begin
   Windows.GetModuleFileName(HInstance, ModName, SizeOf(ModName));
   cret := GetLongPathName(ModName, ModName, SizeOf(ModName));
   SetString(Result, ModName, cret);
 end;

but this function returns \\?\c:\myweb string under IIS and I needed to cut first symbols

 

Dmytro

Link to comment
Share on other sites

  • Administrators

It is mobile app I think.

 

In mobile mode we use an inline gif instead of a file.

function TUnimImageHelper.GetBlankImageUri: string;
begin
  Result := 'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D';
end;

Now the question here s that why your pic remains blank.

 

What is the source of that Image? Please send a code sample or a project.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...