Tuesday, July 30, 2013

How To Root Galaxy with jelly Bean custom Rom???

First Lets Have A Quick Look On Our Jelly Bean Screen Shots 
Home
home

App Drawer

Notification

About Your New galaxy

hat your rom gonna brick again n again or gonna be in infinite loop abt power on.]
Now lets start the  step you have to do=>

About rooting your ph0ne refer my previous post,i like to continue from it
Download CWM.zip for galaxy that you have.
Download the Jelly Blast Rom from 4share by searching " JellyBlastV3Signed.zip" ( about 122 MB)
Using USB connect your phone to Pc and copy the downloaded Rom file to your SD card.
Disconnect device from PC.
Hope your phn charge is above 65%.
Root Your device and Install CWM Recovery- bt how??
ON android recovery mode you ll see update zip from sd card =>select
Use Volume Up down key to navigate and home key to select. Yeah select CWM recovery (v5 prefered).
haha you are IN.

Wipe system,data,cache. Dont wory you are going well till now.

Next select "install zip from SD card"  then  "choose zip from SD card".

Now select  "JELLYBLASTV3.signed" rom file from your SD card and confirm 
iNSTALLING =========>

When Jellybean is successfully installed, GO TO BACK and select" Reboot System Now", and wait for it to restart.

it takes some time to start your phone. Take long breadth and wait .. I know how it feels :) Dont wory wait.

Ahh you got it ??? Enjoy .. Have fun customizing it. 
bye bye.

Monday, July 29, 2013

unlock your samsung galaxy patern lock...

Follow the following step for your solution:

  1. Turn off your galaxy .
  2. press and hold volume up+power+home key
  3. Android system recovery  will apear. Select => wipe data/factory reset
  4. This cannot be undone. Then select =>Yes delete all user 
  5. now reboot your system by selecting =>reboot system now
[use volume up down to travers along option and power or home key to select.]

Sunday, July 7, 2013

retrived image from database saved as binary


This is how you can get array of byte from database

public static byte[] GetImage(string ImageId)
{ byte[] img = null;
DataTable dt = new DataTable();
SqlCommand cmd = new SqlCommand();
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = "your_store_procedure_returns_binary_Image";
cmd.Parameters.AddWithValue("@CODE", ImageId);
cmd.Connection = yourConnection();
SqlDataReader dr = null;
dr = cmd.ExecuteReader();
if (dr.Read())
{
    img = (byte[])dr[0];
}
dr.Close();
return img;//returns array of byte
}
on your handler.ashx
public void ProcessRequest(HttpContext context)
{
 context.Response.ContentType = "image/jpeg";
 Stream strm = new MemoryStream(GetImage(ID));
 long length = strm.Length;
 byte[] buffer = new byte[length];
 int byteSeq = strm.Read(buffer, 0, 2048);

 while (byteSeq > 0)
 {
       context.Response.OutputStream.Write(buffer, 0, byteSeq);
       byteSeq = strm.Read(buffer, 0, 2048);
  }
}
now set image url for your asp:image inside your gridview as follows
Image1.ImageUrl = "somthing.ashx?ID="+userImageID;
i hope you have unique id for your image to be visible. I hope you have all set now. Comments and query are well comed.