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 or the method 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..
Web Site : www.berkadem.com
E-mail: hasancelik [ at ] berkadem.com
Phone: +90 312 473 38 86
Mobile Phone: +90 544 640 96 25
Address : Öveçler 4. Cadde 1325.sokak No:5/1 Çankaya ANKARA
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 or the method 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..
Web Site : www.berkadem.com
E-mail: hasancelik [ at ] berkadem.com
Phone: +90 312 473 38 86
Mobile Phone: +90 544 640 96 25
Address : Öveçler 4. Cadde 1325.sokak No:5/1 Çankaya ANKARA