Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8192271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:08:21+00:00 2026-06-07T04:08:21+00:00

I loaded an image from the web and saved it as an image file

  • 0

I loaded an image from the web and saved it as an image file using ImageIO.read(), ImageIO.write() methods. This file is saved on the default location based on the platform in which the application is running (for Android it is under main root ‘/’). Now I need to move this file into the resources directory so that I can load the image using assets().getImage() method.

But i have not found any way to do this.

Is there way to save file(any format) under resource directory at runtime in playN?????….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T04:08:22+00:00Added an answer on June 7, 2026 at 4:08 am

    No, not in a platform independent or portable way, it may be possible during development or on particular platforms.

    The resource directory is often embedded in a read-only jar archive or the platform equivalent of that. Generally speaking the resources is read-only so there is no platform independent way to write to that folder.

    The java platform has the resources embedded in a jar file and to the best of my knowledge it is not easy to dynamically add to a jar while at the same the reading it.

    The HTML platform typically lives on a web server and most web servers do not by default allow you to write to any folder. With appropriate config this can probably be bypassed, but again it will not be easy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have loaded an byte array image from a web service to my asp.net
I loaded a 640 x 480 (in px) jpg image from res using Bitmap.
I have a problem. When the app has loaded an image from a web
I have app in which I'm downloading image from web to iphone app. This
I am trying to read an image that resides somewhere on the web from
I am using a gridview with image adapter. The adapter load images from web
I am working with a loader to request an image from a WMS(Web Mapping
I'm trying to resize an image loaded from disk - a JPG or PNG
is there any possiblity in J2ME to convert an image (loaded from a png
In JME3, when a texture is loaded from an image, it stretches it to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.