URGENT!! BYTE ARRAY TO VARBINARY(MAX) MSSQL possible "ANDROID"? :(
===

I've been trying to save byte array to mssql from android, however though i got the correct byte array in the code (checked during debug), system saves some irrelevant data to MSSQL SERVER 2008.

My code:

    Bitmap bitmap = BitmapFactory.decodeFile("/sdcard/ColorSplashFX/b.jpg");
					
					 ByteArrayOutputStream bos = new ByteArrayOutputStream();
					 
					 bitmap.compress(Bitmap.CompressFormat.PNG, 0, bos);
					 
					 byte[] blob2 = bos.toByteArray();
				

					 CallableStatement proc = null;					
					 
					 String temp3 ="{ call AndroidDB.dbo.stokkayit(\'CCC\',\'CCC\',\'"+blob2+"\')}";
					 proc = HataRaporlamaActivity.loginPage_conn.prepareCall(temp3);
					 proc.executeUpdate();

//I GOT ERROR that says I'm trying to save varchar instead of VARBINARY(MAX)

My StoredProcedure:

    ALTER PROCEDURE [dbo].[stokkayit]
   @stokkodu	nvarchar(50),
   @stokadi	nvarchar(50),
   @stokresim	varbinary(MAX)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	insert into AndroidDB.dbo.adb_hatalar_stoklar values(@stokadi, @stokkodu,  @stokresim,1)
END


Thanks in Advance for REPLIES