• Saurabh46
  • NEWBIE
  • 0 Points
  • Member since 2012
  • Salesforce Developer

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 6
    Replies

How to hide user detail page from other users .

 

Any help is appreciated, thanks.

Hi all,

 

I am trying to store image in the Document...using ASCII to Image ..

 

Here is Code to Upload Document...

 

Document d = new Document();
String ascii = "0300260060035E0000FF000000FF0000FF000001FF03FF03FF05FF05FF07FF08FE09FE0AFF0CFD0BFE0DFD0CFD0DFD0CFC0BFD0AFE08FD08FF06FE05FF040003FF0200010000010001FE01FF00FF00FF0000470072035700FFFF000000FF00FE00FF00FE00FF00FF00FF000001FF010002FF02000300020003010400040104010401050105010502050204020403030403040304020502060106010601070008000801090008000901080008000801070006010601060105010401040203010201030102000101020101010101010101010101010000000000FF00FFFFFE000000FF000035006903B300FF00FF00FF00FD00FE00FD00FD00FE01FC00FE01FD01FE00FE01FF01FF010000FF01010000000201030005FF070008FF0AFF0BFF0CFE0CFF0BFF0CFF0AFF09FF07FF05FF040003FF020001000101010002010101010000000101010001000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
  
byte[] encoded = Base64.encodeBase64(ascii.getBytes());
d.setBody(decoded);
d.setFolderId(fid);
d.setName("myImage");
d.setType("jpeg");
SObject obj[] = new SObject[1];
obj[0] = (SObject) d;
connection.create(obj);
System.out.println("Completed");

 

 

Code upload the Image in JPEG Form  in the Document,but  Image is not Display...

Help me out.

 

Regards

Saurabh

 

 

I have a flow that I embedded into a visualforce page, but I am getting the following error. "can’t display component 'flowruntime:dependentPicklists', because it isn't supported in Classic runtime". I was wondering if I render lightning flow runtime into my visualforce page would this solve my issue?  I have never tried this before, if anyone could show how to add the code to my visualforce page below that would be greatly appreciated.

 
<apex:page standardController="Opportunity" lightningStylesheets="true" >
    <flow:interview name="Create_Yushin_Products" finishLocation="/{!Opportunity.Id}">
        <apex:param name="recordId" value="{!Opportunity.Id}" />
    </flow:interview>
</apex:page>

 
  • May 16, 2019
  • Like
  • 0
I completed the challenge, earning the Force.com basics and Date Modeling badges, however I did so under a different login than my Salesforce employee login. I was having trouble accessing the developer zone and created a seperate account for it. Can I have the badges under my developer edition login transferred to my normal Salesforce employee login and am I still qualified for the t-shirt giveaway?

How to hide user detail page from other users .

 

Any help is appreciated, thanks.

Hi all,

 

I am trying to store image in the Document...using ASCII to Image ..

 

Here is Code to Upload Document...

 

Document d = new Document();
String ascii = "0300260060035E0000FF000000FF0000FF000001FF03FF03FF05FF05FF07FF08FE09FE0AFF0CFD0BFE0DFD0CFD0DFD0CFC0BFD0AFE08FD08FF06FE05FF040003FF0200010000010001FE01FF00FF00FF0000470072035700FFFF000000FF00FE00FF00FE00FF00FF00FF000001FF010002FF02000300020003010400040104010401050105010502050204020403030403040304020502060106010601070008000801090008000901080008000801070006010601060105010401040203010201030102000101020101010101010101010101010000000000FF00FFFFFE000000FF000035006903B300FF00FF00FF00FD00FE00FD00FD00FE01FC00FE01FD01FE00FE01FF01FF010000FF01010000000201030005FF070008FF0AFF0BFF0CFE0CFF0BFF0CFF0AFF09FF07FF05FF040003FF020001000101010002010101010000000101010001000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
  
byte[] encoded = Base64.encodeBase64(ascii.getBytes());
d.setBody(decoded);
d.setFolderId(fid);
d.setName("myImage");
d.setType("jpeg");
SObject obj[] = new SObject[1];
obj[0] = (SObject) d;
connection.create(obj);
System.out.println("Completed");

 

 

Code upload the Image in JPEG Form  in the Document,but  Image is not Display...

Help me out.

 

Regards

Saurabh