How to save an image into photo gallery using j2me - mobile

I am making an application for nokia, samsung, lg ets using j2me.
I want to save an image into photo gallery of mobile. But i didn't have any idea what path i use to save image?

Look on this article, Getting Started with the FileConnection APIs. Also look on this example, File Connection Using J2ME api JSR 75.

String initDir = System.getProperty("fileconn.dir.photos");
Mobile's Internal Memory can make issue if it is limited. So You should use Memory card to save the images.
You can create a folder in Memory card and access it using E:/<folder-name> in to your J2ME code.

Related

How to take a photo using callee's phone camera in React Native like Facetime?

TLDR;
How do I make a photo service that does the following in a video calling app:
caller presses button on phone1
callee's phone camera takes photo using phone2 camera
photo saved on caller's phone1
I am trying to make a photo service that works in an iOS project I'm building using React Native.
I used Connecty-Cube to make a video call service in the app, but now I want to add a button that allows the caller to take a photo of the callee.
I know I can just use react-native-view-shot to take a screenshot of the callee, but I want to take the photo using the callee's own phone camera.
I think FaceTime now has this functionality (they let FT users take live photos), but I haven't found any other apps that do this.
Does anyone have any pointers? Thank you!
If you can do it using native code, you can easily bridge it to the JavaScript. That also can be more efficient than looking into some react-native plugin. More information you can get in docs or articles

Where to store image if the image is used in two different websites

I want to upload the image in my website. The same image will be shown in another website. So this is the scenario where image is uploaded in one website and displayed in both website. These two websites are hosted in two different servers as well as they both have their own database.
I am using Angular JS, Entity Framework, Web API and SQL Server 2014 as backend for both of the website. Currently I am using ngFileUpload to upload the images. Please answer me on below questions:-
Should I upload the image in database(as nvarchar-max) or filesystem(FTP or local web server file system)? I read many articles and get to know that Database retrieval of image has affect on performance but it is more secured. However File System is easy in performance but complex on maintenance like back ups. So I am just not able to decide which to choose among these two as both have pros and cons. Which option will be more suitable to my requirement where same image will be displayed in both website. Please note that there can big images like upto 5 MB uploaded in the application but the number of images will not be huge as compare to any social networking or online shopping site.
How to create different size of images(thumbnail, medium, large etc) automatically upon uploading of image in website? Is there any tool or directive already available in Angular JS to achieve this?
I know my question is broad but I need suggestion to start with my requirements.
Please help.
I use the file system to host my images. If the image is displayed on someone's computer screen, they can use an image capturing software to copy it anyway. Also, while storing them to a database may be more secure, I don't need the extra overhead in my code where a simple url to retrieve the image will suffice.
As for resizing an image using Angular, check out these links:
https://www.scientiamobile.com/page/angular-image-resize
https://github.com/FBerthelot/angular-images-resizer

J2ME access Default media player track running in background

Is there any way to access track being played in Music player running in background in J2ME?
or at least the path of the file
AFAIK you can't able to access the default media player using Java ME.
Search for APIBridge.jar on google. This jar file allows you to read sms from inbox, use native camera application. So there might be possibility, It allows you to use Native Media Player.

Intergrate webcam in website

i need a "take picture" option in my website which is developed in MVC3 and C# where i can capture image from web cam on clients pc and want to store that image on my server in some specific folder.
You can achive that using flash and Camera code. I suggest you use http://www.kevinmusselman.com/2009/02/access-webcam-with-flash/
Regards
Vipin
As you are already using the Microsoft stack and C# for everything you can use a small Silverlight application on the page to capture the current web-cam image.
e.g. You could make the whole Silverlight app just a single push button, if you wanted, to make it unobstrusive.
Take a look at this link "Capturing the Webcam in Silverlight 4"

How to save esri map as an image file

I am using Silverlight 3 and I am trying to take a screenshot of esri map.
I was able to take a screenshot and save as a file for silverlight controls, but when I try to access Esri map image, I get "Pixel access not allowed" error. I heard this is because of different domain (I am trying to get map image on the client side, and map image is not accessible at server side in my silverlight application).
So I am trying to find a function from esri so that I can save the map image as a file.
does anybody know how to do this? or any other way around?
I am using a script from the Code Gallery for both printing and exporting map images.
The script requires a little bit of tweaking to get it to work (plus you need to dig a little bit into WCF and self-hosted services), but it has been working great for several months now. You can see it in action at our web site.

Resources