You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "hasan çelik (JIRA)" <ji...@apache.org> on 2014/09/19 13:04:33 UTC
[jira] [Commented] (WICKET-5703) how to use PropertyModel for
saving image to database
[ https://issues.apache.org/jira/browse/WICKET-5703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14140318#comment-14140318 ]
hasan çelik commented on WICKET-5703:
-------------------------------------
sorry about that :(
> how to use PropertyModel for saving image to database
> -----------------------------------------------------
>
> Key: WICKET-5703
> URL: https://issues.apache.org/jira/browse/WICKET-5703
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 6.17.0
> Reporter: hasan çelik
> Labels: file_upload, image, propertyModel, wicket
>
> hi,
> i have a file upload process for image.
> fileupload.java
> https://gist.github.com/cortix/9079660
> User1.java
> https://gist.github.com/cortix/f5fbc0a137d6acfa9b40
> fileupload.html
> https://gist.github.com/cortix/9082148
> i got this error
> https://gist.github.com/cortix/9079743
> ...
> final FileUploadField fileUpload = new FileUploadField("fileUpload",new PropertyModel(user1, "photo"));
> form.add(fileUpload);
> ...
> i think i should change my ProperyModel for images to save database because in my pojo class my object type is byte[]... When i use this way, i get error... i am thinking if this PropertyModel change, i can fix this problem but i don't know how can i use this PropertyModel for byte type..
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)