I've followed the example code at http://www.smartclient.com/smartgwte...se/#upload_sql.
The upload by FileItem works fine, once I add the additional fields described in the JavaDoc Enum FieldType IMAGEFILE
However, I am at a loss as to how to read the BLOB back into an Img(). I can see in the SGWT Dev Console that a DataSource fetch returns all fields, including the BLOB metadata fields, but not the BLOB field itself.
Hints please! Thanks.
Clarification: I'm within the Smart GWT Framework (and would like to stay there), using the Built-In-DS sample as the project template.
The upload by FileItem works fine, once I add the additional fields described in the JavaDoc Enum FieldType IMAGEFILE
Code:
... <field name="THEBLOB" type="imageFile"></field> <field name="THEBLOB_FILENAME" length="256" type="text"></field> <field name="THEBLOB_FILESIZE" type="number"></field> <field name="THEBLOB_DATE_CREATED" type="date"></field> ...
Hints please! Thanks.
Clarification: I'm within the Smart GWT Framework (and would like to stay there), using the Built-In-DS sample as the project template.
Comment