Hi,

Having a little problem with the write blob command.

It appears as though sending a large (>10mb) of data using this command (it's a large PDF), stops the web server responding.

This appears to only happen on OSX not Windows.


Here is my code snippet:

<%
    set cache control("")
    set expires(-1)
    query([Items]; [Items]ID = Num($itemid))

    $vtFileName := [Items]External_Reference
    $vtFileName := replace string($vtFileName; "\\"; "-")
    $vtFileName := replace string($vtFileName; "/"; "-")
    $vtFileName := replace string($vtFileName; "?"; "-")
    $vtFileName := replace string($vtFileName; "*"; "-")
    $vtFileName := replace string($vtFileName; "!"; "-")
    $vtFileName := replace string($vtFileName; "."; "-")

pm2_log(Table(->[Items]); [Items]ID; get session("UID"); 204; "Ext Ref: " + [Items]External_Reference)

set response header("Content-disposition";"attachment;filename="+ $vtFileName+".pdf")
    if(not(defined($hires)))
        $hires := "no"
    end if

    $vxBlob := PM2_PDF_TO_BLOB(num($itemid); $hires)
    write blob($vxBlob;"application/pdf")
%>

Has anyone seen this problem before?


OSX10.4.2
4D 2003.7
Active4D latest beta._______________________________________________
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