Ah, ok, ... thanks Martin.  I'll double check myself.

Perhaps it was broken in 1.9.0, but fixed in 1.10.0-SNAPSHOT ?

On 15 October 2015 at 20:02, Martin Grigorov <mgrigo...@apache.org> wrote:

> Hi,
>
> I just tested the KitchenSink app -> Data types -> First BlobClobObject and
> everything seems to be fine with uploading and previewing images.
> The code it uses is:
>
> @javax.jdo.annotations.Persistent(defaultFetchGroup="false", columns = {
>         @javax.jdo.annotations.Column(name = "someBlob_name"),
>         @javax.jdo.annotations.Column(name = "someBlob_mimetype"),
>         @javax.jdo.annotations.Column(name = "someBlob_bytes",
> jdbcType = "BLOB", sqlType = "VARBINARY")
> })
> private Blob someBlob;
>
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Thu, Oct 15, 2015 at 8:53 PM, Dan Haywood <d...@haywood-associates.co.uk
> >
> wrote:
>
> > On 15 October 2015 at 18:58, Cesar Lugo <cesar.l...@sisorg.com.mx>
> wrote:
> >
> > > Thanks Dan,
> > >
> > > How do I track the issue status? Is there a place to track a ticket or
> > so?
> > >
> >
> > yes, you can raise tickets via the ASF JIRA  [1]
> >
> >
> >
> >
> > >
> > > BTW, I also tried with an action that sets the image, getting a similar
> > > issue. I am using the in-memory database, not sure if it supports
> Blobs,
> > > might it have anything to do with this issue?
> > >
> > >
> > It does (or rather, it did) work fine with the in-memory database.  So
> > that's not the issue.  Probably we've upgraded a UI dependency and our
> > testing missed the issue :-(
> >
> >
> >
> > Thanks
> > Dan
> >
> > [1] https://issues.apache.org/jira/browse/ISIS
> >
> >
> >
> >
> > > Cesar.
> > >
> > > -----Original Message-----
> > > From: Dan Haywood [mailto:d...@haywood-associates.co.uk]
> > > Sent: Wednesday, October 14, 2015 1:26 PM
> > > To: users
> > > Subject: Re: Blobs properties for images
> > >
> > > Hmm, sounds like a bug, thanks for reporting. Will look into it.
> > > On 14 Oct 2015 17:12, "Cesar Lugo" <cesar.l...@sisorg.com.mx> wrote:
> > >
> > > > Hello.
> > > >
> > > >
> > > >
> > > > I have an entity that needs a property to store an image file, so I
> > > > included a Blob field on the Entity. Now, when I run the application
> > > > using the Wicket viewer and enter edit mode on that entity, it allows
> > > > me to select a file. I select an image file and shows the image, but
> > > > when I hit the OK button, the image is not shown.  If I enter edit
> > > > mode again, the image is not shown either. Do I need something else
> to
> > > > make it work?
> > > >
> > > >
> > > >
> > > > @javax.jdo.annotations.Column(allowsNull="true")
> > > > @Property(optionality = Optionality.OPTIONAL) @MemberOrder(name =
> > > > "Image",sequence = "120") public Blob getImage() {
> > > >     return image;
> > > > }
> > > >
> > > > public void setImage(final Blob image) {
> > > >     this.image = image;
> > > > }
> > > >
> > > > public Blob image;
> > > > //endregion
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Cesar.
> > > >
> > > >
> > > >
> > > > ---
> > > > This email has been checked for viruses by Avast antivirus software.
> > > > https://www.avast.com/antivirus
> > > >
> > >
> > >
> > > ---
> > > This email has been checked for viruses by Avast antivirus software.
> > > https://www.avast.com/antivirus
> > >
> > >
> >
>

Reply via email to