Trying to pass byte array of Image as parameter to service

Posted by nageshgatla7-20699 under WCF on 10/16/2013 | Points: 10 | Views : 1377 | Status : [Member] | Replies : 7
Hi am nagesh,

i have client and service programs developed, am trying to pass byte array (which is generated by converting image to byte array) to service method. but i giving an below error
"The remote server returned an unexpected response: (400) Bad Request".

CREATE FUNCTION [dbo].[Split](@LocationIds varchar(8000), @seperator char(1))
returns @temptable TABLE (ids int)
as
begin
declare @idx int
declare @slice varchar(8000)

select @idx = 1
if len(@LocationIds)<1 or @LocationIds is null return

while @idx!= 0
begin
set @idx = charindex(@seperator,@LocationIds)
if @idx!=0
set @slice = left(@LocationIds,@idx - 1)
else
set @slice = @LocationIds

if(len(@slice)>0)
insert into @temptable(ids) values(@slice)

set @LocationIds = right(@LocationIds,len(@LocationIds) - @idx)
if len(@LocationIds) = 0 break
end
return
end




Responses

Posted by: Learningtorise on: 10/17/2013 [Member] Starter | Points: 25

Up
0
Down
Share ur Code please

http://hashtagakash.wordpress.com/

nageshgatla7-20699, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: nageshgatla7-20699 on: 12/26/2013 [Member] Starter | Points: 25

Up
0
Down
dfgsdfgsdfgsdfg
 Download source file

nageshgatla7-20699, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: nageshgatla7-20699 on: 12/26/2013 [Member] Starter | Points: 25

Up
0
Down
adfadsfasdfasdf
 Download source file

nageshgatla7-20699, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: nageshgatla7-20699 on: 12/27/2013 [Member] Starter | Points: 25

Up
0
Down
27 dec 13 latest check it out
 Download source file

nageshgatla7-20699, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: nageshgatla7-20699 on: 12/28/2013 [Member] Starter | Points: 25

Up
0
Down
asdfasjfasd
 Download source file

nageshgatla7-20699, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: nageshgatla7-20699 on: 12/28/2013 [Member] Starter | Points: 25

Up
0
Down
in photo gallery folder _PagedPictureGallery.cshtml (partial view conusmer code) index.cshtml
 Download source file

nageshgatla7-20699, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: nageshgatla7-20699 on: 12/30/2013 [Member] Starter | Points: 25

Up
0
Down
sdfasdf
 Download source file

nageshgatla7-20699, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response