[codenameone-discussions] Re: recommended Tablets

2019-02-12 Thread shop . service . assistant
Thanks

On Monday, February 11, 2019 at 2:26:28 PM UTC-5, shop.servic...@gmail.com 
wrote:
>
> If you are experiencing an issue please mention the full platform your 
> issue applies to:
> IDE: NetBeans/Eclipse/IDEA NetBeans 8.2
> Desktop OS Windows 10 Pro
> Simulator Latest
> Device Android, IOS
>
> Being intentionally non specific.
> Curious, I have several challenges/issues with IOS where Android 7+ does 
> not exhibit.
>
>
> We prefer screen size in the 9 to 10 inch with approximate screen 
> resolutions 1600 X 2560 / 2048 X 1536
> 4GB RAM
> 32GB SSD Min
> Cellular enabled
> 4+ cores
>
> Can you please let us know your thoughts on reasonably priced Models of 
> Tablets that you are particularly in favor of using.
>
> Our Customers are Automotive shops (Dealerships etc.)
>
> Thanks in advance.
> Regards.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/ae399c23-9823-459e-859a-c32fbb53339a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: get bytes from Image and back complete code example

2019-02-12 Thread shop . service . assistant
Thanks.

On Monday, February 11, 2019 at 10:04:58 PM UTC-5, shop.servic...@gmail.com 
wrote:
>
> If you are experiencing an issue please mention the full platform your 
> issue applies to:
> IDE: NetBeans/Eclipse/IDEA NetBeans 8.2
> Desktop OS Windows 10
> Simulator Latest
> Device PS, Android, IOS
>
> Can you please provide complete code listing where we get bytes from Image 
> (which I store in DB)
> The convert those bytes to Image
>
> I have these methods:
> public byte[] getBytesFromImage(com.codename1.ui.Image image) {
> ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
> byte[] BytesFromImage = new byte[0];
> try {
> if (image != null) {
> ImageIO.getImageIO().save(image, outputStream, 
> ImageIO.FORMAT_PNG, 1f);
> BytesFromImage = outputStream.toByteArray();
> }
> } catch (Exception e) {
> e.printStackTrace();
> MyLog.e(e);
> }
> return BytesFromImage;
> }
>
>
> public Image getImageFromBytes(byte[] img) {
> Image image = null;
> try {
> int width = 978;
> int height = 550;
> image = Image.createImage(img, 0, img.length);
> if (image.getHeight() > height || image.getWidth() > width) {
> image = image.scaled(height, width);
> }
> } catch (Exception e) {
> e.printStackTrace();
> MyLog.e(e);
> }
> return image;
> }
>
>
> java.lang.IllegalArgumentException: Width (-35) and height (-20) cannot be 
> <= 0
>  at 
> java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)
>  at java.awt.image.BufferedImage.(BufferedImage.java:333)
>  at 
> com.codename1.impl.javase.JavaSEPort.createTrackableBufferedImage(JavaSEPort.java:5081)
>  at 
> com.codename1.impl.javase.JavaSEPort.createTrackableBufferedImage(JavaSEPort.java:5064)
>  at com.codename1.impl.javase.JavaSEPort.createImage(JavaSEPort.java:5089)
>  at com.codename1.impl.javase.JavaSEPort.scale(JavaSEPort.java:5277)
>  at com.codename1.ui.Image.scale(Image.java:1021)
>  at com.codename1.ui.Image.scaledImpl(Image.java:967)
>  at com.codename1.ui.Image.scaled(Image.java:932)
>  at com.codename1.ui.Image.scaledSmallerRatio(Image.java:898)
>  at 
> com.codename1.components.SignatureComponent.setSignatureImage(SignatureComponent.java:261)
>
>
> Please Advise:
>
> Regards
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/e581a84c-7f31-4e40-b822-53b577a20a35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.