I have a form to submit documents to 4D and use the WEB GET BODY PART to locate the document and store it:
<form action="update/do" enctype="multipart/form-data" method="post"> <input name="wo_file" type="file" /> </form> *WEB GET BODY PART*($loop;$ContentBlob;$PartName;$MimeType;$FileName) *If* ($PartName="wo_file") [Routing_file]File:=$ContentBlob // field is of type BLOB [Routing_file]MimeType:=$MimeType *End if* Later, the file is served up from the database which works for most file types (pdf, etc.) *VARIABLE TO BLOB*([Routing_file]File;$blob) *WEB SEND BLOB*($blob;$[Routing_file]MimeType) BUT, it doesn't work for pictures. Any idea why? ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************