Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Size of jar file to upload

 
Amar Thia
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The size of my jar file with just the sequence diagram alone is coming to 600KB. In the assignment instructions, Sun says to have the file size between 200k and 400k. How did you guys do it? Sun suggests "optimizing the graphics"... Did you do that? If yes, can you suggest some softwares. Or did you use some other technique.

I am using StarUML. I use the "export the diagram" feature to create jpegs.

HELP!

Thanks,
Amar.
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't use JPG, use PNG instead.
 
Ronald Wouters
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even when using png the size of my jar was too big.
I used IrfanView to do a "convert to grayscale" on the png color images. That reduced the size of my jar almost by half.
The total size of my upload jar was about 700KB.

Regards
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ronald , if use PNG, size of images should be quite small, make sure your work is not too detailed.
You should focus on architecture, and key design, not complete design.

But I wonder, does Sun restrict size of the jar file to not exceed 400K? Or Sun just suggests? If it's only a suggestion, I think no need to worry to much.
 
Amar Thia
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It appears StarUML can only *.jpg *.jpeg *.bmp *.wmf *.emf


It does not have a png. So, what did you use for creating your diagrams.

Thanks,
Amar
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you can open JPG files in MS Paint and save as PNG.

I used MagicDraw.
 
Amar Thia
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kengkaj,
Thank you so much... You are very helpful..

Just FYI... I used MS Paint and saved to PNG - it doubled the size --- But, when I saved it to GIF -- it reduced.

Using MS-Paint:
JPG File of 256 KB was converted to 441 KB .png file

JPG File of 256 KB was converted to 82 KB .gif file

That was a huge relief...

Thanks,
Amar
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Glad to hear you solved the problem, thanks for update .

It's new to me that converting JPG to PNG make file size bigger. I think there is a different between export diagram directly to PNG and export to JPG and then convert to PNG.
 
Sharma Ashutosh
Bartender
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any size restriction on the assignment? my friend's assignment is around 900KB and still he uploaded and passed the exam.
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Monu Sharma wrote:Is there any size restriction on the assignment? my friend's assignment is around 900KB and still he uploaded and passed the exam.

For current version, I think no. but I heard that there is a size limit in an old version of SCEA. I think it's a strange restriction, B&W images will be smaller than colored images anyway but that doesn't mean B&W images are anything better.
 
Anand Ramesh
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Size limit is 1000K when I uploaded my assignment this week.
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ram And wrote:Size limit is 1000K when I uploaded my assignment this week.

This is new to me. I passed SCEA 5 Beta which didn't have size limit.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic