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 7091179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:09:07+00:00 2026-05-28T08:09:07+00:00

The images the camera is taking are 324 x 190. How can I take

  • 0

The images the camera is taking are 324 x 190. How can I take larger photos using android intent? Current code:

Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
StartActivityForResult(intent, 0);

protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
    {
        base.OnActivityResult(requestCode, resultCode, data);

        if (resultCode == Result.Ok && requestCode == 0)
        {
            var settings = PreferenceManager.GetDefaultSharedPreferences(this);
            var assetID = settings.GetString("unit", null);
            var store = settings.GetString("store", null);
            DateTime dt = DateTime.Now;
            var date1 = dt.ToString("MM-dd-yyyy");
            var time1 = dt.ToString("HH:mm");

            Bitmap bitmap = (Android.Graphics.Bitmap)data.Extras.Get("data");

            using (var stream = new System.IO.MemoryStream())
            {
                bitmap.Compress(Android.Graphics.Bitmap.CompressFormat.Png, 0, stream);
                byte[] imageBytes = stream.ToArray();
                string base64String = Convert.ToBase64String(imageBytes);

                inst.saveImage(base64String, store, assetID, date1, time1);
            }

        }

    }

inst.saveImage… is a Web Method that saves the image to a SQL Server Database.

Then when I run a select on that table to display the image in a browser in my ASP.net project using

"data:image/png;base64," + base64 string from SQL, 

it is only a 324 x 190 image. I need either for it to take a larger photo from the intent or a way to display it larger using the data url in ASP.net.

  • 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-05-28T08:09:07+00:00Added an answer on May 28, 2026 at 8:09 am

    To get a full size image from the IMAGE_CAPTURE intent, you need to use:

    intent.PutExtra (MediaStore.ExtraOutput, contentResolverUri);
    

    Something like this:

    ContentValues values = new ContentValues();
    values.Put (MediaStore.Images.ImageColumns.Title, title);
    values.Put (MediaStore.Images.ImageColumns.Description, description);
    Uri uri = ContentResolver.Insert (MediaStore.Images.Media.ExternalContentUri, values);
    
    intent.PutExtra (MediaStore.ExtraOutput, uri);
    

    http://developer.android.com/reference/android/provider/MediaStore.html#ACTION_IMAGE_CAPTURE

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

Sidebar

Related Questions

For my application, I'd been using my own Camera class for taking images and
I am taking pictures from my custom UIImagePicker camera and saving the images inside
In my application I want to capture two images using camera and then I
I have a custom library that can pick mulitple images from the camera roll,
I am using camera functionality in my application and saving the images in documents
Exposure values from camera can be acquired when you take picture (without saving it
I'm taking images from the camera or the camera roll and I'm saving them
I'm using writeImageToSavedPhotosAlbum:metadata:completionBlock: to save images to the camera roll (GPS data is in
In my application users can add up to 8 images taken by the camera
I have an Android application in mind that would require taking as many camera

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.