Re: WEB GET BODY PART / VARIABLE TO BLOB / WEB SEND BLOB

2019-12-18 Thread Keisuke Miyako via 4D_Tech
Hello,

looks like you are using the wrong command for conversion.

v. to blob creates byte stream that only 4D understands.

should use "picture to blob" instead.

> 2019/12/19 1:02、Tim Daniels via 4D_Tech <4d_tech@lists.4d.com>のメール:
>
> *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
**

WEB GET BODY PART / VARIABLE TO BLOB / WEB SEND BLOB

2019-12-18 Thread Tim Daniels via 4D_Tech
I have a form to submit documents to 4D and use the WEB GET BODY PART to
locate the document and store it:








*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
**