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

  • Home
  • SEARCH
  • 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 6334753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:43:16+00:00 2026-05-24T18:43:16+00:00

I have image data of cursor in in 2d byte array .I want to

  • 0

I have image data of cursor in in 2d byte array .I want to make custom cursor by this raw data.If anybody know please tell how to make by url() function of javascript?

  • 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-24T18:43:17+00:00Added an answer on May 24, 2026 at 6:43 pm

    You might be able to use a data URI to encapsulate the raw pixels, but even then you need to have some kind of format. Are you using a canvas to create the image? If so, you might be able to use JavaScript to convert it like this:

    var canvas = ... // look up canvas node
    var cursorAsData = canvas.toDataURL();
    
    // NOTE: jQuery or another library would make this much easier.
    var nodeThatNeedsCursor = ... // look up node for cursor
    nodeThatNeedsCursor.style.cursor = "url("+cursorAsData+")";
    

    What this does is return the canvas as a data URI, which looks like this:

    data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACt...
    

    This can be used in just about all modern browsers directly in a url() in a stylesheet.

    If you just want to encode the item in a stylesheet, and you have some sort of source image, you can use a Data URI encoder like this one, which lets you upload an image and returns encoded string.

    But if you just have a raw byte string for the image, please see this stackoverflow answer for the conversion, then use the data URI scheme above.

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

Sidebar

Related Questions

I have image data and i want to get a sub image of that
I have a custom image file where the first block of data is ASCII
How is the image data saved with an uint8 array? Say that I have
I have an image data type in my table. When I query using SQL
I have some scientific image data that's coming out of a detector device in
I have a XULRunner application that needs to copy image data to the clipboard.
I have some problems with OpenCV s cvCanny(...) and the Image data types it
I have the following code: Guid id = imageMetaData.ID; Data.LinqToSQL.Image dbImage = DBContext.Images.Where(x =>
There is a data file and some image files that I have to download
I have written a CGI script that creates an image dynamically using GET data.

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.