On Mar 21, 2010, at 10:19 AM, Mike Vogt wrote:

> Hi all,
> I'm still trying to pursue serving other types of files a bit further. My end 
> goal is to serve an fdf/pdf but for now I was just trying to serve a jpeg.  
> My fuseaction does the following:
> 
> C_Blob($fdf_blob)
> document to blob("school1.jpg";$fdf_blob)

Document to Blob requires a full path (or I think there is a default location). 
Then Active4D would require it to be in the web root or defined in active4d.ini 
as a safe document directory

I think if you would put in some debugging

writebr(blob size("blobsize = "+$fdf_blob+" ok = " + ok)
return

You probably have a 0 blob size and ok is probably  set to -43, file not found

If the document is in the same folder as your script:

C_Blob($fdf_blob)
document to blob(directory of(current path) +"school1.jpg";$fdf_blob)

may get your document

Steve


> write blob($fdf_blob;"image/jpeg")
> 

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to