If $S$ is a surface over the complex numbers $\mathbb{C}$, and $C$ is a curve in $S$, and $i:C\longrightarrow S$ is the inclusion morphism. If $A$ is a line bundle over $C$, then is it true that $Hom_{\mathcal{O}_S}(i_*A,i_*A)=Hom_{\mathcal{O}_C}(A,A)$?
Clearly they are both supported on $C$. But are the sheaves the same too?
If your curve is a local complete intersection, then one can show in general:
Assume $Z$ is a local complete intersection of codimension $m$ in an algebraic variety $Y$. Let $F$ and $G$ be coherent sheaves on $Z$ and assume that $F$ is locally free, then one has:
Here $N_{Z/Y}$ is the normal bundle of $Z$ in $Y$.