You are viewing limited content. For full access, please sign in.

Discussion

Discussion

Forms corrupts a random image if too many images are being uploaded while displaying thumbnails

posted on June 25, 2024

Here's the scenario I've been able to reproduce:

I've got an upload form using a table or collection to set a few metadata fields. It has an upload button, and I've set the button to show a medium thumbnail of the files uploaded. If enough photos are uploaded to the form (over 60-100), then when the save to repository step goes off, only about 5-6 pages will include a thumbnail; after about 50 images (out of 200-ish), the rest of the pages just list attachment names. When this happens to the upload report, one of the images randomly gets saved to the repository with an extra 20,000-30,000 pages of text that look like a photo encoded as text. The save to repository step will also take about 10-20 times longer than it should to save (no doubt chugging to output the report with thumbnails).

I've included a sample of the output of the report. Note each file is a photo that should have a thumbnail, but they stop after about 60 thumbnails. There's another thumbnail on page 9, but there's no rhyme or reason to it. Each of the photos is between 5 and 13 megabytes; for a total of about 1.2GB in this sample.

For now, I've addressed this by turning off the thumbnails for the upload report; the save to repository step goes through in about 2 minutes without corrupting any of the images.

Thumbnail example.jpg
0 0
replied on June 27, 2024

Hi Steven,

I can reproduce some thing similarly, but want to confirm if we meet same scenario. So in your use case, you have a table field and a upload field, then you upload 60-100 images file into several rows of the table, and use STR task to save the form to repository (and maybe also save all these images, or not?). In the generated form, the images looks corrupted, only first several images display?

0 0
replied on June 27, 2024

In this case, all 60-100 end up in one row of a table, and they don't appear corrupted in any of the thumbnails. The document I made a screenshot of is the result of the STR step saving the output of the same form used to upload the photos. The photos all appeared correctly rendered at the time of uploading them, and once the STR step has saved them to individual LF entries, the actual photos are fine with one exception. One of the photos will randomly be stored in the repository as an image with thousands of extra text-only pages that look like an image file encoded as text. Here's an example. Page 3 mentions the model of the camera used to take the photo.

I'm also seeing this coming from an upload where I've turned off the image thumbnails, so it may not just be caused by overloading the renderer for the STR step.

0 0
replied on June 27, 2024 Show version history

I think there may be two different issues:

1. When upload a lot of images into a upload field with thumbnail enabled, then save the form to repository via STR, the saved form does not look good, seems like all the thumbnails are crowded into first several pages, thus the remaining pages only display the fie name. However I did a test with 100 images and each is 8MB, the saved form looks good on all the pages.

2. When upload a lot of images into a upload field even if thumbnail is not enabled, after save all the images into repository via STR, most of the images look good, but there will be one image file that display thousands of "text" pages, which may represent the binary data of this or all the uploaded images.

So I'm not quite able to reproduce your issue so far, maybe a support case is a proper place to follow up, and we may need some sample images you used, the Forms version and more detailed steps.

1 0
replied on June 28, 2024

Forms version: 11.0.2311.50564 (although it was also happening with an older revision of Forms 11 ~ update 3 or 4).

0 0
replied on June 28, 2024

Also, about the first point you made, the thumbnails just stop by the 6th page. Nothing is malformed about the printed form; the thumbnails show up in the correct place above each file name listed on the form. It should look like page 2-5 all the way to the end of the file list. It actually should balloon to about 20-30 pages with this many files.

0 0
replied on July 2, 2024

Hi Steven,

Could you open a support case for it then, as I'm not able to reproduce right now with my own images, we can check if some samples from you may have a difference or not.

0 0
replied on June 25, 2024

Hi Steven,

Thanks for reporting and your efforts to reproduce the issue. Could you please file a support case through your Solution Provider? It can link to this Answers post. That's the best way for us to track and correspond about the issue. Our internal bug tracking system is closely linked to the support ticketing system and such.

Cheers,

Sam

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.